import { createAPI, createFormAPI } from '@/utils/request'

export const insertPigDiseaseRecords = data => createFormAPI('/admin/pigDiseaseRecords', 'post', data)
export const deletePigDiseaseRecords= data => createAPI(`/admin/pigDiseaseRecords/${data.id}`, 'delete', data)
export const updatePigDiseaseRecords= data => createAPI('/admin/pigDiseaseRecords', 'put', data)
export const selectPigDiseaseRecords= data => createAPI('/admin/pigDiseaseRecords', 'get', data)
export const pigDiseaseRecordsNum=data =>createAPI('/admin/pigDiseaseRecordsNum',"get",data)
